package com.mobisys.live.response.tencentcloud;


/*
* 用来接受腾讯云反馈下来的事件消息
* */
public class TencentEventResponse {

    private  String t; //有效时间 时间戳
    private  String sign; // 安全签名
    private  int    event_type; //事件类型
    private  String stream_id; //直播码。表示源于那一条直播流
    private  String channel_id; //同 stream_id

   //推流断流事件接受属性
    private  String appname ;// 推流路径
    private  String app;  //推流域名
    private  int event_time; //消息产生的时间
    private  String sequence;//消息序列号，标识一次推流活动，一次推流活动会产生相同序列号的推流和断流消息
    private  String node;//Upload 接入点的 IP
    private  String user_ip;//用户推流 IP
    private  int errcode;//断流错误码
    private  String errmsg;//断流错误信息
    private  String stream_param;//推流 url 参数
    private  String push_duration;//推流时长

    //新录制文件的接受属性
    private  String video_id ;// 点播用 vid，在点播平台可以唯一定位一个点播视频文件
    private  String video_url ;//点播视频的下载地址
    private  String file_size ;//文件大小
    private  int  start_time ;//开始时间（unix 时间戳，由于 I 帧干扰，暂时不能精确到秒级）
    private  int  end_time ;//结束时间（unix 时间戳，由于 I 帧干扰，暂时不能精确到秒级）
    private  String file_id ;//
    private  String file_format ;//文件格式
    private  int  vod2Flag ;//是否开启点播 2.0
    private  String record_file_id ;//录制文件 ID
    private  int duration;//推流时长


    public String getT() {
        return t;
    }

    public void setT(String t) {
        this.t = t;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public int getEvent_type() {
        return event_type;
    }

    public void setEvent_type(int event_type) {
        this.event_type = event_type;
    }

    public String getStream_id() {
        return stream_id;
    }

    public void setStream_id(String stream_id) {
        this.stream_id = stream_id;
    }

    public String getChannel_id() {
        return channel_id;
    }

    public void setChannel_id(String channel_id) {
        this.channel_id = channel_id;
    }

    public String getAppname() {
        return appname;
    }

    public void setAppname(String appname) {
        this.appname = appname;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public int getEvent_time() {
        return event_time;
    }

    public void setEvent_time(int event_time) {
        this.event_time = event_time;
    }

    public String getSequence() {
        return sequence;
    }

    public void setSequence(String sequence) {
        this.sequence = sequence;
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }

    public String getUser_ip() {
        return user_ip;
    }

    public void setUser_ip(String user_ip) {
        this.user_ip = user_ip;
    }

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getStream_param() {
        return stream_param;
    }

    public void setStream_param(String stream_param) {
        this.stream_param = stream_param;
    }

    public String getPush_duration() {
        return push_duration;
    }

    public void setPush_duration(String push_duration) {
        this.push_duration = push_duration;
    }

    public String getVideo_id() {
        return video_id;
    }

    public void setVideo_id(String video_id) {
        this.video_id = video_id;
    }

    public String getVideo_url() {
        return video_url;
    }

    public void setVideo_url(String video_url) {
        this.video_url = video_url;
    }

    public String getFile_size() {
        return file_size;
    }

    public void setFile_size(String file_size) {
        this.file_size = file_size;
    }

    public int getStart_time() {
        return start_time;
    }

    public void setStart_time(int start_time) {
        this.start_time = start_time;
    }

    public int getEnd_time() {
        return end_time;
    }

    public void setEnd_time(int end_time) {
        this.end_time = end_time;
    }

    public String getFile_id() {
        return file_id;
    }

    public void setFile_id(String file_id) {
        this.file_id = file_id;
    }

    public String getFile_format() {
        return file_format;
    }

    public void setFile_format(String file_format) {
        this.file_format = file_format;
    }

    public int getVod2Flag() {
        return vod2Flag;
    }

    public void setVod2Flag(int vod2Flag) {
        this.vod2Flag = vod2Flag;
    }

    public String getRecord_file_id() {
        return record_file_id;
    }

    public void setRecord_file_id(String record_file_id) {
        this.record_file_id = record_file_id;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    @Override
    public String toString() {
        return "TencentEventResponse{" +
                "t='" + t + '\'' +
                ", sign='" + sign + '\'' +
                ", event_type=" + event_type +
                ", stream_id='" + stream_id + '\'' +
                ", channel_id='" + channel_id + '\'' +
                ", appname='" + appname + '\'' +
                ", app='" + app + '\'' +
                ", event_time=" + event_time +
                ", sequence='" + sequence + '\'' +
                ", node='" + node + '\'' +
                ", user_ip='" + user_ip + '\'' +
                ", errcode=" + errcode +
                ", errmsg='" + errmsg + '\'' +
                ", stream_param='" + stream_param + '\'' +
                ", push_duration='" + push_duration + '\'' +
                ", video_id='" + video_id + '\'' +
                ", video_url='" + video_url + '\'' +
                ", file_size='" + file_size + '\'' +
                ", start_time=" + start_time +
                ", end_time=" + end_time +
                ", file_id='" + file_id + '\'' +
                ", file_format='" + file_format + '\'' +
                ", vod2Flag=" + vod2Flag +
                ", record_file_id='" + record_file_id + '\'' +
                ", duration=" + duration +
                '}';
    }
}
